/*将用户模块所有的请求维护在该文件*/
import instance from "@/request";
// 请求用户列表
export const getUserList = () => instance.get('/user/list')

// 新增  编辑 用户数据
export const addOrUpdateUser = (form) => instance.post('/user/addOrUpdate', form)

// 用户数据分页展示
export const userPage = (page, size) => instance.get("/user/page?page=" + page + "&size=" + size)

// 删除用户数据
export const removeUsers = (ids) => instance.post("/user/delete", ids)


// 注册用户
export const registerUser = (form) => instance.post('/user/register', form)

// 认证
export const login = (form) => instance.post('/user/login', form)